package com.terrace.db.system.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.terrace.db.system.mapper.entity.Log;
import com.terrace.db.system.mapper.entity.LogWithDetails;

public interface LogDao {
	
	/**
	 * 保存日志
	 * @param log
	 * @return
	 */
    public int saveLogSelective(LogWithDetails log);
    
    /**
     * 根据用户id删除用户操作信息
     * @param userId
     * @return
     */
    public int deleteByUserId(@Param("userId") String userId);
	
	/**
	 * 根据ID查询日志详情
	 * @param logId
	 * @return
	 */
	public LogWithDetails selectLogDetailsById(int logId);
	
	/**
	 * 分页查询
	 * @param log
	 * @return
	 */
	public List<Log> selectLogsForPagination(Log log);
	
}